Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |nan

std/types/float::|nan


Usage

|nan<F>()

Generics

◻ F: Float

Return

F


Return the not-a-number value for floating type.

⚠️ NaN is not equal to itself; use is_nan() to test for it rather than equality comparison.